﻿namespace theeg.MatrixWpf.Models
{
    public class Element : NotifyingObject
    {
        public int Position { get; set; }

        private bool _isExpanded;

        public bool IsExpanded
        {
            get { return _isExpanded; }
            set { SetNotifyingField(ref _isExpanded, value, "IsExpanded"); }
        }

        private string _text;
        public string Text
        {
            get { return _text; }
            set { SetNotifyingField(ref _text, value, "Text"); }
        }

        public object Tag { get; set; }

        public Element[] Children { get; set; }
    }
}
